<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加学生</title>
    <style>
        /* 基本样式重置 */
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        /* 表单容器样式 */
        form {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 300px;
        }

        /* 标题样式 */
        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 20px;
        }

        /* 输入框和按钮的通用样式 */
        input[type="text"],
        input[type="date"],
        input[type="submit"] {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        /* 单选按钮组样式 */
        .radio-group {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        /* 提交按钮样式 */
        input[type="submit"] {
            background-color: #28a745;
            color: white;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        input[type="submit"]:hover {
            background-color: #218838;
        }
    </style>
</head>
<body>
<h1>添加学生</h1>
<form action="StudentServlet" method="post">
    <!-- 姓名输入框 -->
    <label for="name">姓名：</label>
    <input type="text" id="name" name="name" required />

    <!-- 性别单选按钮 -->
    <label for="gender">性别：</label>
    <div id="gender" class="radio-group">
        <input type="radio" id="male" name="gender" value="男" checked />
        <label for="male">男</label>
        <input type="radio" id="female" name="gender" value="女" />
        <label for="female">女</label>
    </div>

    <!-- 生日日期输入框 -->
    <label for="birthday">生日：</label>
    <input type="date" id="birthday" name="birthday" required />

    <!-- 班级输入框 -->
    <label for="clazz">班级：</label>
    <input type="text" id="clazz" name="clazz" required />

    <!-- 提交按钮 -->
    <input type="submit" value="添加学生" />
</form>
</body>
</html>